<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>																			
<%@ include file="/WEB-INF/view/jsp/base.jsp" %>																																			
<html lang="en">																																											
<body class="wysihtml5-supported">																																							
	<div id="content">																																										
		<div class="container-fluid">																																							
			<div class="row-fluid">																																							
				<div class="span12">																																							
					<div class="widget-box">																																					
						<div class="widget-title">																																			
							<h5>详情</h5>																																							
						</div>																																									
						<div class="widget-content nopadding">																																
							<form id="ibpEventLogDataForm" action="" method="post" class="form-horizontal">																					
								<input type="hidden" name="dateTime" />	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">日期时间 :</label>																								
											<span class="" name="dateTime" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">日期 :</label>																								
											<span class="" name="ymd" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">时分秒 :</label>																								
											<span class="" name="hms" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">年 :</label>																								
											<span class="" name="year" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">月 :</label>																								
											<span class="" name="month" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">日 :</label>																								
											<span class="" name="day" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">周（年初开始算） :</label>																								
											<span class="" name="week" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">时 :</label>																								
											<span class="" name="hh" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">分 :</label>																								
											<span class="" name="mm" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">秒 :</label>																								
											<span class="" name="ss" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">整10秒 :</label>																								
											<span class="" name="m10" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">整10分 :</label>																								
											<span class="" name="s10" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">日志类型（T-交易日志<trade> O-其他日志<other>） :</label>																								
											<span class="" name="logType" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">日志级别 :</label>																								
											<span class="" name="logLevel" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">进程名 :</label>																								
											<span class="" name="processName" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">进程id :</label>																								
											<span class="" name="processId" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">客户端通讯节点名 :</label>																								
											<span class="" name="clinetNodeName" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">客户端通讯节点地址 :</label>																								
											<span class="" name="clinetNodeAddress" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">服务端通讯节点名 :</label>																								
											<span class="" name="serverNodeName" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">服务端通讯节点地址 :</label>																								
											<span class="" name="serverNodeAddress" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">交易码 :</label>																								
											<span class="" name="tradeCode" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">交易描述 :</label>																								
											<span class="" name="tradeDescribe" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">通讯响应码 :</label>																								
											<span class="" name="communicateResponseCode" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">交易总耗时 :</label>																								
											<span class="" name="tradeTotalTime" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">交易保持耗时 :</label>																								
											<span class="" name="tradeKeepTime" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">通讯接收耗时 :</label>																								
											<span class="" name="communicateReceiveTime" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">应用处理耗时 :</label>																								
											<span class="" name="appcationProcessTime" ></span>																							
										</div>																																					
										<div class="flex-item">																																
											<label class="">通讯发送耗时 :</label>																								
											<span class="" name="communicateSendTime" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">交易处理耗时 :</label>																								
											<span class="" name="tradeProcessTime" ></span>																							
										</div>																																					
									</div>	
									<div class="flexbox">																																
										<div class="flex-item">																																
											<label class="">日志信息（非交易日志，未分割） :</label>																								
											<span class="" name="logInfo" ></span>																							
										</div>																																					
									</div>
								<div class="form-actions">																																	
									<button type="button" class="btn btn-danger" style="float:right;margin-left:10px;"  onclick="del($(this))">删除</button>								
									<button type="button" class="btn btn-warning" style="float:right;margin-left:10px;"  onclick="edit($(this))">修改</button>											 
 									<button type="button" class="btn btn-info f-right"  style="float:right;margin-left:10px;" onclick="cancle()">取消</button>								
								</div>																																							
							</form>																																								
						</div>																																									
					</div>																																										
				</div>																																											
			</div>																																												
		</div>																																													
	</div>																																														
	<script>																																													
	    var params = mainParam.param;   //接收传来的参数																																												
		//初始化表单数据																																												
		$(document).ready(function(){																																							
																																																
			if(!$.isEmptyObject(params)){																																						
				$.ajax({																																										
					url:"<%=path%>/ibpEventLogData/get",																																			
				    data:params,																																			
				    type:"post",																																								
				    success:function(text){																																						
				    	if(text.success){																																						
							$("#ibpEventLogDataForm").autofill(text.data);   //填充隐藏表单																												
				    		var _data = text.data ;																																				
					    	$("#ibpEventLogDataForm").find("span").each(function(){																												
					    		_this = $(this) ;																																				
					    		_name = _this.attr("name") ;																																	
					    		if(_name!=null){																																				
					    			for(key in _data){																																			
					    				if(_name == key){																																		
					    					_this.html(_data[key]);																																
					    				}																																						
					    			}																																							
					    		}																																								
					        });																																									
				    	}else{																																									
				    		//查询无结果时返回原查询页面，并返回标识result=null表示无查询结果																														
				    		window.location.href="<%=path%>/ibpEventLogData/query?result=null";																										
				    	}																																										
				    }																																											
				});																																												
			}																																													
		});																																														
	    
	    
    	//编辑																																													
		function edit(_this){																																									
 			var $form = $("#ibpEventLogDataForm");
			$form.attr("action","<%=path%>/ibpEventLogData/form");																												
			toLoad($form.attr("action"),$form.serialize());
 		}   																																												
 		//删除																																												
 		function del(_this){																																								
 			$("#modelDialog").modal();
			$("#confirm").click(function(){																																					
				$("#ibpEventLogDataForm").attr("action","<%=path%>/ibpEventLogData/form");																												
    			$.ajax({																																										
     				url:"<%=path %>/ibpEventLogData/del",																																		
     				data:$("#ibpEventLogDataForm").serialize(),																																					
     				type:"post",																																							
     				success:function(text){																																					
     					if(text.success){																																					
     						alert("删除成功！");																																				
     						history.go(-1);																																					
     					}else{																																								
     						alert("删除失败！");																																				
     					}																																									
     				}																																										
     			});																																											
 			})																																												
 		}																																													
	</script>																																													
</body>																																														
</html>	    																																												

